package com.guofen.service.shlj;

import com.guofen.pojo.ShljElectricityMeter;
import com.guofen.pojo.ShljEquipmentMaintenance;

import java.util.List;
import java.util.Map;

public interface EquipmentMaintenanceService{
    //增
    boolean add(String equipmentName,
                String operator,
                String method,
                String examiner,
                String result,
                String remarks);

    boolean update(Integer id,
                String equipmentName,
                String operator,
                String method,
                String examiner,
                String result,
                String remarks);

    ShljEquipmentMaintenance get(Integer id);

    public Map<String, Object> getByTime(int pageSize, int currentPage, long startTime, long endTime);

    ShljEquipmentMaintenance getlast();

    ShljEquipmentMaintenance getlatest(String equipmentsName,String maintenanceContent);

    boolean is_latest_complete(String equipmentName,String menstanceNum);

    List<Integer> is_lastweek_complete(String equipmentsName, String menstanceNum, String role);

    int getInThisWeek();

    List<ShljEquipmentMaintenance> getWeekRecords(String equipmentName);

    public Map<String, Object> get(int pageSize, int currentPage);

    public int delete(int id);

    public int update(ShljEquipmentMaintenance record);
}